package com.atguigu.eduservice.client;

import com.atguigu.commonutils.CommonResult;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author : 李红磊
 * @Date : 2021/06/22/23:48
 * @Description :
 */
@Component
public class VodFileDegradeFeignClient implements VodClient {

    //服务降级
    @Override
    public CommonResult removeVideo(String videoId) {

        return CommonResult.error().message("删除视频出错");
    }

    @Override
    public CommonResult deleteBatch(List<String> videoIdList) {
         return CommonResult.error().message("删除多个视频出错");
    }
}
